//
//  MerchantModel.h
//  RainbowFM
//
//  Created by Kratos on 14/12/23.
//  Copyright (c) 2014年 RB. All rights reserved.
//  商家

#import <Foundation/Foundation.h>

#import "MediaItem.h"
#import "BaseModel.h"
#import "GoodsCatalogModel.h"

@class MerchantItem;
@interface MerchantModel : NSObject

+(instancetype)sharedModel;

/**
 * 商家分类列表
 * @return <#return value description#>
 * @author Kratos
 */
-(void)fetchMerchantTypeList:(void(^)(NSArray *typeList, NSString *msg))res;

/**
 * 查询商家列表
 * @param colId 栏目ID N
 * @param key 关键字 N
 * @param typeId 分类ID N
 * @param currentPage 当前页 Y
 * @param pageSize 每页条数 Y
 * @return <#return value description#>
 * @author Kratos
 */
-(void)fetchMerchantsListWithColId:(NSString *)colId
                                key:(NSString *)key
                             typeId:(NSString *)typeId
                        currentPage:(int)currentPage
                           pageSize:(int)pageSize
                             result:(void(^)(NSArray *list, NSString *msg))res;

/**
 * 商家详情
 * @param merchantId <#merchantId description#>
 * @return <#return value description#>
 * @author Kratos
 */
-(void)searchMerchantDetailWithMerchantId:(NSString *)merchantId
                               result:(void(^)(MerchantItem *merchant, NSString *msg))res;

@end


@interface MerchantTypeItem : BaseModel
@property (nonatomic , strong) NSString *TYPE_ID;//	String	否	分类ID
@property (nonatomic , strong) NSString *TYPE_NAME;//	String	否	分类名称
@end

@interface MerchantItem : BaseModel
@property (nonatomic , strong) NSString *MERCHANT_ID;//	String	是	商家ID
@property (nonatomic , strong) NSString *MERCHANT_NAME;//	String	是	商家名称
@property (nonatomic , strong) NSString *MERCHANT_DESC;//	String	是	商家描述
@property (nonatomic , strong) NSString *MERCHANT_IMG_URL;//	String	是	商家图片地址
@property (nonatomic , strong) NSString *PHONE;//	String	是	商家电话号码

@property (nonatomic , strong) NSArray *mediaList;//商家详情媒体集合
@property (nonatomic , strong) NSArray *productList;//商家商品（最多3个）

@property (nonatomic , strong) NSArray *mediaItemList;//商家详情媒体集合
@property (nonatomic , strong) NSArray *productItemList;//商家商品（最多3个）
@end